package com.android.lovingpet.community.teams;

import com.android.lovingpet.common.Back;
import com.android.lovingpet.util.CallbackStore;
import com.android.lovingpet.util.MyHttp;
import com.android.lovingpet.util.URLStore;
import com.android.lovingpet.util.Utility;

import java.util.HashMap;
import java.util.Map;

public class TeamsModel {

    public void getTeams(int offset, int num, Back back) {
        Map<String, String> params = new HashMap<>();
        params.put("offset", offset + 1 + "");
        params.put("num", num + "");
        MyHttp.getInstance().postAsync(Utility.getJSessionId(), URLStore.TEAM_GET, params, new CallbackStore.CallbackIds<>(back));
    }
}
